import numpy as np
import torch


def test1():
    t = torch.Tensor([1, 2, 3])
    print(t)
    arr = np.arange(12).reshape(3, 4)
    t2 = torch.Tensor(arr)
    print(t2)
    t3 = torch.randint(low=1, high=10, size=[5, 6])
    print(t3)


if __name__ == '__main__':
    # print(torch.__version__)
    test1()
